package com.yeyks.common.param.activity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.NotBlank;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author: dagny
 * @date: 2019/11/29 0029 11:47
 */
@ApiModel(description = "推送优惠券输入条件参数")
@Data
public class CouponPushParam implements Serializable {
    private static final long serialVersionUID = 3547993032417314819L;

    @ApiModelProperty(value = "token", name = "token", dataType = "String", required = false)
    @NotBlank(message = "token不能为空")
    private String token;

    @ApiModelProperty("优惠券ids， 逗号隔开")
    private String couponIds;

    @ApiModelProperty("推送标题")
    @NotBlank(message = "推送标题不能为空")
    private String title;

    @ApiModelProperty("推送开始时间")
    @NotNull(message = "推送开始时间不能为空")
    private Long pushStartTime;

    @ApiModelProperty("推送结束时间")
    @NotNull(message = "推送结束时间不能为空")
    private Long pushEndTime;
}
